import pandas as pd, openpyxl

data = pd.read_csv('data.csv')
print(data.head())

data = pd.DataFrame({'日期': [1, 3, 5], '战斗值': [2, 4, 6]}, index=['x', 'y', 'z'])
data.to_csv('data_new.csv')